﻿using System;
using System.ComponentModel.DataAnnotations.Schema;
using Volo.Abp.Domain.Entities;

namespace HCMS.Entities.Base
{
    /// <summary>
    /// 系统 字典
    /// </summary>
    [Table("system_dictionary")]
    public class SystemDictionary : Entity<int>
    {
        /// <summary>
        /// Id
        /// </summary>
        public new int Id { get; set; }

        /// <summary>
        /// 创建 时间
        /// </summary>
        [Column("create_time")]
        public DateTime CreateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 创建 人
        /// </summary>
        [Column("create_user")]
        public string CreateUser { get; set; } = "";

        /// <summary>
        /// 更新 时间
        /// </summary>
        [Column("update_time")]
        public DateTime UpdateTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新 人
        /// </summary>
        [Column("update_user")]
        public string UpdateUser { get; set; } = "";

        /// <summary>
        /// 状态
        /// </summary>
        [Column("status")]
        public int Status { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        [Column("title")]
        public string Title { get; set; } = "";

        /// <summary>
        /// 父级 Id
        /// </summary>
        [Column("parent_id")]
        public int ParentId { get; set; }

        /// <summary>
        /// 父级 路径
        /// </summary>
        [Column("parent_path")]
        public string ParentPath { get; set; } = "";

        /// <summary>
        /// 排序号
        /// </summary>
        [Column("orders")]
        public int Orders { get; set; }

        /// <summary>
        /// 字典 值
        /// </summary>
        [Column("dictionary_value")]
        public string DictionaryValue { get; set; } = "";
    }
}